import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './assets/fonts/font.css'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/common.less';
import * as api from './api/index';

Vue.use(ElementUI);
Vue.config.productionTip = false;
window.onload = resize
window.onresize = resize
Vue.prototype.$api = api
function resize() {
  let ratioX = (window.innerWidth / 1920);
  let ele = document.getElementById("app");
  ele.style.transform = 'scale(' + ratioX + ')';
  ele.style.transformOrigin = 'left top'
}

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
